module.exports = {
  presets: [
    [
      "@babel/preset-env", // 预设，解析es6+
      {
        useBuiltIns: "usage", // 按需引入
        corejs: 3,
      },
    ],
  ],
  plugins: [
    [
      "@babel/plugin-transform-runtime",
      {
        absoluteRuntime: false,
        corejs: 3,
        helpers: true,
        regenerator: true,
        useESModules: false,
      },
    ],
  ],
};

// "dependencies": {
//   "@babel/polyfill": "^7.12.1",
//   "@babel/runtime": "^7.22.6"
// },
// "devDependencies": {
//   "@babel/cli": "^7.22.9",
//   "@babel/core": "^7.22.9",
//   "@babel/plugin-transform-runtime": "^7.22.9",
//   "@babel/preset-env": "^7.22.9"
// }
